<template>
  <view class="proto-list-wrapper">
    <view class="list_1 flex-col">
      <view class="box_4 flex-col" v-for="(item, index) in props.items" :key="index">
        <view class="box_8 align-center justify-between">
          <view class="box_busimg align-center">
            <image class="thumbnail_8" referrerpolicy="no-referrer" :src="busimg"/>
            <text class="text_12" v-text="item?.company_name"></text>
          </view>
          <text class="text_33" v-text="item?.salary_down+'-'+item?.salary_up"></text>
        </view>
        <view class="box_9 flex-row">
          <text class="text_14" v-text="item?.city"></text>
          <text class="text_13" v-text="item?.title"></text>
          <image class="thumbnail_10" referrerpolicy="no-referrer" :src="item?.lanhuimage1" />
          <!-- <text class="text_15" v-text="item?.lanhutext4"></text> -->
          <view class="text-wrapper_1 flex-col" @click="godetail(item.id)">
            <text class="text_34" >详情></text>
          </view>
        </view>
        <text class="text_16" v-text="item?.company_desc"></text>
      </view>
    </view>
  </view>
</template>
<script lang="ts">
export default {
  name: 'ProtoList',
};
</script>
<script setup lang="ts">
import './index.less';
import { PropType, reactive, ref } from 'vue';
import { Detail } from '@/api/proto';
import ProtoCard from '@/components/proto-card/index.vue';
// : '@/assets/lanhu_79gongzuoxiangqingzhang/SketchPngc192a815ecd2bf337dc4c1b2aec0ecfff12dc33f602779eac7da2a21611f632c.png'
import busimg from "@/assets/lanhu_59wode/business.png"


import Taro, {
  useLoad,
  usePullDownRefresh,
  useReachBottom,
  useShareAppMessage,
  useShareTimeline,
  useTitleClick,
} from '@tarojs/taro';
const props = defineProps({
  items: {
    type: Array as PropType<Detail[]>,
    default: () => {
      return [];
    },
  },
});
console.log(props)
const emit = defineEmits(['item-click']);

const handleItemClick = (item) => {
  console.log(item)
  emit('item-click', item);
};
const godetail = (id) =>{
  Taro.navigateTo({ url: `/pages/workdetail/index?id=${id}` });
}
</script>
